#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void left_spin(char arr1[], char arr2[], int num, int sz)
{
	int i = 0;
	
	for (i = 0; arr1[i + num] != '\0'; i++)
	{
		if (i < num)
		{
			arr2[sz - num - 1 +i ] = arr1[i];
		}
		arr2[i] = arr1[i + num];
	}
}

int main()
{
	char arr1[] = "welcome to China";
	char arr2[100] = { 0 };
	int i = 0;
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	int num = 0;
	scanf("%d", &num);
	
	left_spin(arr1, arr2, num, sz);
	
	printf("%s\n", arr2);
	return 0;
}
